package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")//写微服务名称
public interface PaymentFeignService {
    @GetMapping(value = "/payment/get/{id}")
    public CommonResult getByFeign(@PathVariable("id")Long id);
    @GetMapping(value = "/payment/timeout")
    public String timeout();
}
